package cn.wolfcode.shop.server.service.impl;

import cn.wolfcode.shop.api.domain.ProductImage;
import cn.wolfcode.shop.api.service.IProductImageService;
import cn.wolfcode.shop.server.mapper.ProductImageMapper;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by A on 2018/1/5.
 */
@Service
public class ProductImageServiceImpl implements IProductImageService{
    @Autowired
    private ProductImageMapper productImageMapper;

    @Override
    public List<ProductImage> get(Long productId) {
       return productImageMapper.getimage(productId);
    }
}
